package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Range;

import javax.persistence.*;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 顶替效率计算 对应表 CM_DISPLACEMENT_EFFICIENCY
public class CM_DisplacementEfficiency extends BABaseEntity {
    @Id
    @GenericGenerator(name="disEffiGenerator", strategy="uuid")
    @GeneratedValue(generator="disEffiGenerator")
    private String CM_DisplacementEfficiency_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Basic
    @Column(name = "DEPTH")
    private Double depth;

    @Basic
    @Column(name = "VERTICALDEPTH")
    private Double verticalDepth;

    @Basic
    @Column(name = "VOLUME")
    private Double volume;

    @Basic
    @Column(name = "FLUIDNAME", length = 50)
    private String fluidName;

    @Basic
    @Column(name = "FLUIDLOCATION")
    private Double fluidLocation;

    @Basic
    @Column(name = "FLUIDDENSITY")
    private Double fluidDensity;

    @Basic
    @Column(name = "EFFICIENCY")
    private Double efficiency;

    @Basic
    @Column(name = "PROPORTION")
    private Double proportion;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;

}
